# 导入库time
from time import sleep
from psutil._compat import b


# 定义一个变量a
# 设置a的变量默认值为0
a = 0
# 设置错题列表
Game_no = []


class Whlie():
    def init(self):
        print('Hello World\nPython 3.8\n\n\n\n')
        sleep(5)
        print('>>> init\n\n\n\n')
        pass


Pythoninit = Whlie()
Pythoninit.init()
sleep(1)


# 游戏开始

print('游戏开始咯，请做好准备')
sleep(1)
print('3')
sleep(1)
print('2')
sleep(1)
print('1')
sleep(1)
print('开始')
if a > 60:
    # 游戏模块
    # whlie
    b = ['123', '894', '124', '974', '641', '785', '175', '987', '654', '984']
    # 把input框的内容储存在变量c里
    c = int(input('?+50=123(只写横式)'))
    # 变量储存变量c+50的值 用于以后if检测错题
    # 后面也是一样
    d = c + 50
    if d == 123:
        a = + 10
        pass
    else:
        a = +0
        Game_no.append("1")
        pass
    e = int(input('?+521=894'))
    f = e + 521
    if f == 894:
        a = + 10
        pass
    else:
        a = + 0
        Game_no.append("2")
        pass
    g = int(input('30+?=124'))
    h = 30 + g
    if h == 124:
        a = + 10
        pass
    else:
        a = + 0
        Game_no.append("3")
        pass
    i = int(input('412+?-45=974'))
    j = 412 + i - 45
    if j == 974:
        a = + 10
        pass
    else:
        a = + 0
        Game_no.append("4")
        pass
    k = int(input('125+?-145=641'))
    l = 125 + k - 145
    if l == 641:
        a = + 10
        pass
    else:
        a = + 0
        Game_no.append("5")
        pass
    m = int(input('?+451-78=785'))
    n = m + 451 - 78
    if n == 785:
        a = + 10
        pass
    else:
        a = + 0
        Game_no.append("6")
        pass
    o = int(input('546+415-?=175（这个有点难）'))
    p = 546 + 415 - o
    if p == 175:
        a = + 10
        pass
    else:
        a = + 0
        Game_no.append("7")
        pass
    q = int(input('400+300+?=987'))
    r = 400 + 300 + q
    if r == 897:
        a = + 10
        pass
    else:
        a = + 0
        Game_no.append("8")
        pass
    s = int(input('471+123+?=654'))
    t = 471 + 123 + s
    if t == 654:
        a = + 10
        pass
    else:
        a = + 0
        Game_no.append("第9题")
        pass
    u = int(input('400+700-?=984'))
    v = 400 + 700 - u
    if v == 984:
        a = + 10
        pass
    else:
        a = + 0
        Game_no.append("第10题")
        pass
    # 设置及格分并打印分数和错题榜
    if a > 60:
        print('恭喜您，及格了 分数：', a)
        print('错题：', Game_no)
        sleep(5)
    else:
        print('加油哦，没及格 要重考哟 分数 ：', a)
        print('错题：', Game_no)
        sleep(5)